import service from '@/network/request';

export const createCondition = (data) => {
  return service({
      url: '/camp/condition/createCondition',
      method: 'post',
      data
  })
}

export const updateCondition = (data) => {
  return service({
      url: '/camp/condition/updateCondition',
      method: 'post',
      data
  })
}

export const deleteConditionList = (data) => {
  return service({
    url: '/camp/condition/deleteConditionList',
    method: 'post',
    data: data,
  })
}

export const getConditionList = (data) => {
    return service({
      url: '/camp/condition/getConditionList',
      method: 'post',
      data: data,
    })
  }

  export const getConditionTree = (data) => {
    return service({
      url: '/camp/condition/getConditionTree',
      method: 'post',
      data: data,
    })
  }
